package com.casems.mapper;

import com.casems.commons.dto.Menus;
import com.casems.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tch
 * @since 2023-05-12
 */
public interface UserMapper extends BaseMapper<User> {
    List<Menus> getMenusByUserId(int userId);

    List<User> getAllStaff(User user);
    List<User> getAllPatient(User user);

    User getUserForCase(User user);
}
